package centroidtc;

/**
 *  Handle simple testing tasks
 */
public class TextTester {
	
	public TextPaser tm = null;
	
	public TextTester() {
		tm = new TextPaser();
	}
	
	public static void main(String[] args) {
//		TextTester t = new TextTester();
//		// get the parsed corpus information
//		t.tm.setCorpusItemsIntoFile();
//		System.out.println("finish in parsing corpus ...");
//		// get all of the text tfidf information
//		t.tm.writeTextTFIDFInfo();
//		System.out.println("finish in getting text's tfidf ...");
		// get the information of text classification
		
		TextTester t = new TextTester();
		// get the parsed corpus information
		t.tm.setCorpusItemsIntoFile();
		System.out.println("finish in parsing corpus ...");
		// get all of the text tfidf information
		t.tm.writeTextTFIDFInfo();
		System.out.println("finish in getting text's tfidf ...");
		
		CentroidBuilder cb = new CentroidBuilder();
		cb.getTCInfo();
		System.out.println("finish in Centroid classification ...");
		// get the testing information
		TCTool tl = new TCTool();
		tl.saveCFCTestStatInfo();
		System.out.println("finish in getting testing information ...");
	}

}
